package dao;

import utils.DBHelper;

public class AddressDao {

    public void add_address(String name,String telphone,Integer uid,String site){

        String sql ="insert into address (name,telphone,uid,site) values (?,?,?,?)";
        DBHelper.update(sql,name,telphone,uid,site);
    }
    public void del_address(String name,String telphone,Integer uid,String site){
        String sql="delete from address where name =? and telphone=? and uid=? and site=?";
        DBHelper.update(sql,name,telphone,uid,site);
    }
}
